package com.pmsystem.service;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pmsystem.dao.RootMapper;
import com.pmsystem.pojo.Root;

@Service
public class RootService {

	@Autowired
	private RootMapper rootMapper;


	/**
     * 
     * <p>Title: login</p >  
     * <p>Description: 超级管理员登陆</p >  
     * @author 泽强
     * @param username
     * @param password
     * @return
     */
	public Root login(String username, String password) {
		return  rootMapper.login(username,password);
		
	}



	public void initDB(List<String> list) {
		 
		for (String tableName: list) {
			System.out.println(tableName);
			rootMapper.initDB(tableName);
		}
		
	}

}
